平成29年秋期 応用情報 午前 問7
$ {\rm fact}(n)は,非負の整数$ nに対して$ nの階乗を返す。$ {\rm fact}(n)の再帰的な定義はどれか。
ア if $ n = 0 then return 0 else return $ n \times {\rm fact}(n-1)
イ if $ n = 0 then return 0 else return $ n \times {\rm fact}(n + 1)
ウ if $ n = 0 then return 1 else return $ n\times {\rm fact}(n - 1)
エ if $ n = 0 then return 1 else return $ n \times {\rm fact}(n + 1)
←平成29年秋期 応用情報 午前 問6
→平成29年秋期 応用情報 午前 問8
平成29年秋期 応用情報技術者試験 午前
#応用情報技術者試験 #午前 #平成29年